package cn.kgc.service;

import cn.kgc.bean.pojo.EpStaff;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/*
 *@author zhangtao
 *@Date 2023/4/27
 */
public interface EpStaffService {
    /*
     *@author wangchangsheng
     *@Date 2023/4/27
     * 人员管理(分页查询)
     */
    List<EpStaff> getAllInfoEpStaff();


    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 人员管理(模糊查询)
     */
    List<EpStaff> getEpStaffByAgeAndGenderAndEducationAndDepartment(Integer age,
                                                                    String gender,
                                                                    String education,
                                                                    String department,
                                                                    String staffId,
                                                                    String name);

    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 人员录入(修改信息)
     */
    boolean addEpStaff(EpStaff epStaff);


    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 部门录入与概况(修改信息)
     */
    boolean updateEpStaff(EpStaff epStaff);


    /*
     *@author wangchangsheng
     *@Date 2023/4/28
     * 组织机构(员工删除)
     */
    boolean delEpStaff(Long id);


    /**
     * @description 查询人员违章情况
     * @author panchongxin
     * @param :
     * @return List<EpStaff>
     * @date 2023/5/5 14:32
     */
    List<EpStaff> showStaffInfo(Integer age,
                                String gender,
                                String education,
                                String department);


    /**
     * @description 根据员工编号修改员工安全培训分数
     * @author panchongxin
     * @param staffId:
     * @return boolean
     * @date 2023/5/6 9:50
     */
    boolean updateScoreByStaffId(String staffId,Integer score);
}
